home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
byt85jun.lbr
/
BLACKBRD.BAS
next >
Wrap
BASIC Source File
|
1985-09-15
|
1KB
|
33 lines
75 KEY 6,"GOSUB 9500"+CHR$(13) 'Go to Blackboard subroutine
9500 '
9510 ' Blackboard subroutine.
9520 '
9530 PRINT "See color monitor and press F6 for Blackboard screen."
9540 DEF SEG= H800: Z = PEEK (&H410)
9550 IF Z= 125 THEN 9030 ELSE 9560
9560 ON KEY (11) GOSUB 9730
9570 ON KEY (12) GOSUB 9750
9580 ON KEY (13) GOSUB 9770
9590 ON KEY (14) GOSUB 9790
9600 SCREEN 1,0,0,0
9610 SCREEN 0: COLOR 7,0,1
9620 LOCATE 25,1: PRINT "Move cursor with arrows. RETURN to mark."
9630 LOCATE 1,1,1,2,6
9640 FOR I=11 TO 14:KEY(I) ON:NEXT
9650 A$=INKEY$:IF A$<> CHR$(13) THEN 9650
9660 X=POS(0)
9670 Y=CSRLIN
9680 FOR I=11 TO 14:KEY(I) OFF:NEXT
9690 LOCATE 25,1
9700 PRINT USING " Location ##_,##_. SWITCHED to monochrome.";Y;X;
9710 LOCATE Y,X: GOSUB 8000
9720 RETURN
9730 IF CSRLIN>1 THEN LOCATE CSRLIN-1,POS(0),1 ELSE LOCATE 24,POS(0),1
9740 RETURN
9750 IF POS(0)>1 THEN LOCATE CSRLIN,POS(0)-1,1 ELSE LOCATE CSRLIN,40,1
9760 RETURN
9770 IF POS(0)<40 THEN LOCATE CSRLIN,POS(0)+1,1 ELSE LOCATE CSRLIN,1,1
9780 RETURN
9790 IF CSRLIN<24 THEN LOCATE CSRLIN+1,POS(0),1 ELSE LOCATE 1,POS(0),1
9800 RETURN
+1,1 ELSE LOCATE